package cn.zjk.springframework.beans.factory.support;

import cn.zjk.springframework.beans.BeansException;
import cn.zjk.springframework.core.io.Resource;
import cn.zjk.springframework.core.io.ResourceLoader;

/**
 * Simple interface for bean definition readers.
 * @author zjk
 * @CreateTime 2023/3/24 15:44
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegister getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;
}
